from django.contrib import admin
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from app import views
from app.views import FriendsSiendet

urlpatterns = [
  path('register/', views.register, name='register'),
  path('login/', views.login, name='login'),
  path('edit/', views.edit, name='edit'),
  path('upload_img/', views.upload_img, name='upload_img'),
  path('file_manager/', views.file_manager, name='file_manager'),
  path('my_fa/', views.my_f, name='my_fa'),
  path('yinchang/', views.yinchang, name='yinchang'),
  path('index/', views.indexshow, name='indexshow'),
  ]


router = DefaultRouter()
router.register('friends_q', FriendsSiendet)
urlpatterns += router.urls